#pragma once
#include<string>
#include<iostream>
class Task
{
public:
    Task(int x = 0,int y = 0):_x(x),_y(y),_result(0){}
    int Add(){
        return _x+_y;
    }
    int Execute(){
        _result = Add();
        return _result;
    }
    std::string ToString()
    {
        return std::to_string(_result) + "=" + std::to_string(_x) + "+" + std::to_string(_y);
    }
private:
    int _x;
    int _y;
    int _result;
};